import request from '@/request/api'
// 1、开停机操作-列表
export function queryLogList() {
  return request({
    url: '/eam-service-operation/startlog/queryLogList',
    method: 'get',
  })
}
// 2、开停机操作-提交
export function logSubmit(data) {
  return request({
    url: '/eam-service-operation/startlog/submit',
    method: 'get',
    params: data
  })
}
// 3、开停机日志-列表
export function queryOldStatusList(data) {
  return request({
    url: '/eam-service-operation/startlog/queryOldStatusList',
    method: 'get',
    params: data
  })
}
// 4、开停机日志-确认
export function confirm(data) {
  return request({
    url: '/eam-service-operation/startlog/confirm',
    method: 'post',
    data: data
  })
}
// 5、开停机日志-试机
export function isTest(data) {
  return request({
    url: '/eam-service-operation/startlog/istest',
    method: 'post',
    data: data
  })
}
// 6、开停机日志-删除数据
export function logDelete(data) {
  return request({
    url: '/eam-service-operation/startlog/logDelete',
    method: 'post',
    data: data
  })
}
// 7、开停机日志-根据id查询详情
export function logDetails(id = "") {
  return request({
    url: '/eam-service-operation/startlog/logDetails',
    method: 'get',
    params: {
      id
    }
  })
}
// 8、开停机日志-修改
export function updateInfo(data) {
  return request({
    url: '/eam-service-operation/startlog/updateNew',
    method: 'get',
    params: data
  })
}
// 9、开停机日志-申请变更
export function changeData(data) {
  return request({
    url: '/eam-service-operation/startlog/change',
    method: 'post',
    data: data
  })
}
// 10、开停机日志-变更详情
export function getChangeData(id = "") {
  return request({
    url: '/eam-service-operation/startlog/changeMsgdetails',
    method: 'get',
    params: {
      id
    }
  })
}
// 11、开停机日志-批复
export function adoptData(data) {
  return request({
    url: '/eam-service-operation/startlog/adopt',
    method: 'post',
    params: data
  })
}
// 12、开停机日志-作废
export function toVoid(id = "") {
  return request({
    url: '/eam-service-operation//startlog/tovoid',
    method: 'get',
    params: {
      id
    }
  })
}